package com.mashuai.utils.ztest.toolkit.excel;

/**
 * @ClassName: ExcelService
 * @Description:
 */

import com.mashuai.utils.toolkit.core.msExcel.annotation.MsExcelRewrite;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@MsExcelRewrite(targetParam = "excel")
@Service
public class MsExcelService {
    //模拟拦截默认的查询方法。
    @MsExcelRewrite(targetParam = "dynamic",waterMarkClass = MyWaterMark.class)
    public void dynamic(List<Map<String, Object>> data, List<String> headers) {
        System.err.println("--222222--");
    }

    //模拟拦截默认的查询方法。
    @MsExcelRewrite(targetParam = "template")
    public void template(List<Map<String, Object>> data, Map<String, Object> otherVal) {
        System.err.println("----");
    }



    /***
     * 规上企业excel导入
     * **/
    @MsExcelRewrite(targetParam = "import", entityClass = ElmTagExcelDto.class)
    public void espIcEntBusinessAnalysisImport(List<ElmTagExcelDto> data) {
        System.err.println("---");
    }

    /***
     * 规上企业excel导入
     * **/
    @MsExcelRewrite(targetParam = "importRemark", entityClass = ElmTagExcelDto.class)
    public void espIcEntBusinessAnalysisImport(List<ElmTagExcelDto> data,String remark) {
        System.err.println("---");
    }

}
